package com.guigu.liuzhireng.service.impl;

import com.guigu.liuzhireng.mapper.UndergoMapper;
import com.guigu.liuzhireng.pojo.Undergo;
import com.guigu.liuzhireng.service.UndergoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UndergoServiceImpl implements UndergoService {
    @Autowired
    UndergoMapper undergoMapper;

    @Override
    public int insert(Undergo undergo) {
        return undergoMapper.insert(undergo);
    }

    @Override
    public int update(Undergo undergo) {
        return undergoMapper.updateByPrimaryKeySelective(undergo);
    }

    @Override
    public Undergo UndergoOnt(Integer uid) {
        return undergoMapper.selectByPrimaryKey(uid);
    }
}
